package cn.moningxi.mapper;

import cn.moningxi.bean.CustomerInfomation;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CustomerInfomationMapper {
    List<CustomerInfomation> queryMembers();

    List<CustomerInfomation> queryDelMembers();

    CustomerInfomation queryUserByID(int id);

    CustomerInfomation queryUser(CustomerInfomation loginUser);

    boolean updateUser(CustomerInfomation loginUser);

    void removeMember(Integer customerInfoId);

    void returnMember(Integer customerInfoId);

    void register(CustomerInfomation cu);

    CustomerInfomation queryByEmail(CustomerInfomation cu);

    void freeze(Integer customerInfoId);//冻结

    void unfreeze(Integer customerInfoId);//解冻

    CustomerInfomation queryUserByEmail(CustomerInfomation loginUser);

    CustomerInfomation queryUserByPhone(CustomerInfomation loginUser);

    CustomerInfomation queryUserByCustomerId(String customer_id);


    List<CustomerInfomation> selectCustomerLevel();


    void updateBalance(CustomerInfomation onlineUser);

    boolean updateUserPwd(@Param("customerInfoId") String customerInfoId, @Param("oldp") String oldp, @Param("newp") String newp);

    void updateUserheadUrl(@Param("customerId") String customerId, @Param("headUrl") String headUrl);
}